package com.simpletour.qa.service.repository;


import com.simpletour.qa.service.entity.Question;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface QuestionRepository extends JpaRepository<Question, Integer> {


    List<Question> findByTitleLike(String title, Pageable pageable);


    List<Question> findByUserId(int userId, Pageable pageable);

}


